﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SF.Web.UI.mallCs
{
    public class user
    {
        public string loaddingUsing(Model.sf_user_info userInfo, string templateType)
        {
            string usingMsg = "";
            if (userInfo != null)
            {
                if (templateType == "weishangred" || templateType == "weishanggreen" || templateType == "syj")
                {
                    usingMsg = "<link href='css/user.css' rel='stylesheet' />";
                }
            }
            return usingMsg;
        }
        public string loaddingJs(Model.sf_user_info userInfo, string templateType)
        {
            string jsMsg = "";
            if (userInfo != null)
            {
                if (templateType == "weishangred" || templateType == "weishanggreen" || templateType == "syj")
                {
                    jsMsg = "";
                }
            }
            return jsMsg;
        }
        public string loaddingHtml(Model.sf_user_info userInfo, string templateType)
        {
            string htmlMsg = "";
            if (userInfo != null)
            {
                if (templateType == "weishangred" || templateType == "weishanggreen" || templateType == "syj")
                {
                    htmlMsg = "<body><form id='form1' runat='server'><header id='header' class='u-header clearfix'> <div class='u-hd-left f-left'><a href='javascript:void(0)' class='J_backToPrev'><span class='u-icon-px i-hd-back'></span></a></div><div class='u-hd-tit'><span>个人中心</span></div><div class='u-hd-right f-right'><a href='index.aspx?appnum=" + userInfo.appNum + "'><span class='u-icon-px i-hd-home'></span></a></div></header><div class='userinfo'><div class='userinfo_content'><ul id='login' runat='server'><li><b></b>账户名：<span><label id='latName'>" + userInfo.nickName + "</label></span></li></ul></div></div><div class='s_links in_user_center userdiv'><a href='address.aspx'><em class='s_addr'></em>配送地址</a><a href='orderList.aspx?type=1'><em class='s_fav'></em>待支付订单</a><a href='orderList.aspx?type=2'><em class='s_wallet'></em>已完成订单</a><a href='cart.aspx'><em class='s_history'></em>我的购物车</a></div><div class='s_links in_user_center userdiv'></div><div class='space20' id='user_index_bottom'></div><div class='u-footer clearfix'></div><a href='#top' class='u-backtop'><span class='u-icon-px i-backtop'></span></a><div class='h50'></div><div class='fixed bottom'><dl class='sub-nav nav-b3'><dd><a href='index.aspx?appnum=" + userInfo.appNum + "'><i class='icon-store'></i>逛商城</a></dd><dd><a href='cart.aspx'><i class='icon-distribusion'></i>购物车</a></dd><dd class='active'><a href='/mall/user.aspx'><i class='icon-member'></i>会员中心</a></dd></dl></div></form></body>";
                }
            }
            else
            {
                htmlMsg = "<body><form id='form1' runat='server'><header id='header' class='u-header clearfix'> <div class='u-hd-left f-left'><a href='javascript:void(0)' class='J_backToPrev'><span class='u-icon-px i-hd-back'></span></a></div><div class='u-hd-tit'><span>个人中心</span></div><div class='u-hd-right f-right'><a href='index.aspx'><span class='u-icon-px i-hd-home'></span></a></div></header><div class='userinfo'><div class='userinfo_content'><strong id='unlogin' runat='server'><a href='###' class='btn_user_login'>登录</a><a href='###' class='btn_user_register'>注册</a></strong></div></div><div class='s_links in_user_center userdiv'><a href='address.aspx'><em class='s_addr'></em>配送地址</a><a href='orderList.aspx?type=1'><em class='s_fav'></em>待支付订单</a><a href='orderList.aspx?type=2'><em class='s_wallet'></em>已完成订单</a><a href='cart.aspx'><em class='s_history'></em>我的购物车</a></div><div class='s_links in_user_center userdiv'></div><div class='space20' id='user_index_bottom'></div><div class='u-footer clearfix'></div><a href='#top' class='u-backtop'><span class='u-icon-px i-backtop'></span></a><div class='h50'></div><div class='fixed bottom'><dl class='sub-nav nav-b3'><dd><a href='index.aspx'><i class='icon-store'></i>逛商城</a></dd><dd><a href='cart.aspx'><i class='icon-distribusion'></i>购物车</a></dd><dd class='active'><a href='/mall/user.aspx'><i class='icon-member'></i>会员中心</a></dd></dl></div></form></body>";
            }
            return htmlMsg;
        }
    }
}
